import wangyiRequest from '@/utils/wangyiRequest'
interface categoryData {
  data: any
  categoryL1List: []
  categoryL2List: []
  currentCategory: []
  categoryGroupList: []
}

interface categoryItemData {
  data: any
  categoryGroupList: []
  categoryL2List: []
  currentCategory: {}
}

// export const categoryList = () => {
//   return wangyiRequest.get<any, categoryData>('item/cateList.json?__timestamp=1630131455012&categoryId=1005000')
// }
export const categoryList = () => {
  return wangyiRequest.get<any, categoryData>('item/cateList.json?__timestamp=1630131455012&categoryId=1005000')
}
export const categoryImg = (id: number) => {
  return wangyiRequest.get('/item/cateList.json?__timestamp=1630131455012&categoryId=' + id)
}
